package org.springblade.modules.customer.form;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableField;
    import com.baomidou.mybatisplus.annotation.TableId;
    import com.baomidou.mybatisplus.annotation.TableName;
    import java.time.LocalDate;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.*;
import java.util.Date;

import io.swagger.annotations.Api;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 客户表查询条件
 *
 * @author armyant
 * @since 2024-04-21
 */
@Data
@EqualsAndHashCode
@Api(tags = "客户表", value = "表单")
public class CustomerForm {

                @Length(max = 500, message = "长度不能超过 500")
        @ApiModelProperty(value = "头像" )
        private String avatar;


        @ApiModelProperty(value = "生日" )
        private LocalDate birthday;


            @Length(max = 12, message = "长度不能超过 12")
        @ApiModelProperty(value = "客户编号" )
        private String code;



        @ApiModelProperty(value = "创建时间" )
        private LocalDate createTime;



        @ApiModelProperty(value = "客户所属公海" )
        private Long customerGroup;


            @Length(max = 200, message = "长度不能超过 200")
        @ApiModelProperty(value = "客户详情" )
        private String detail;


            @Length(max = 45, message = "长度不能超过 45")
        @ApiModelProperty(value = "邮箱" )
        private String email;



            @Length(max = 20, message = "长度不能超过 20")
        @ApiModelProperty(value = "身份证号码" )
        private String idCard;



            @Length(max = 300, message = "长度不能超过 300")
        @ApiModelProperty(value = "客户标签，以json格式存储" )
        private String label;


        @ApiModelProperty(value = "客户级别（参考数据字典level_dict）" )
        private Integer levelDict;


            @Length(max = 45, message = "长度不能超过 45")
        @ApiModelProperty(value = "手机" )
        private String mobile;


            @Length(max = 45, message = "长度不能超过 45")
        @ApiModelProperty(value = "客户座机" )
        private String phone;


            @Length(max = 200, message = "长度不能超过 200")
        @ApiModelProperty(value = "备注" )
        private String remark;


        @ApiModelProperty(value = "性别" )
        private Integer sex;


        @ApiModelProperty(value = "状态（参考数据字典status_dict）" )
        private Integer statusDict;


            @Length(max = 12, message = "长度不能超过 12")
        @ApiModelProperty(value = "租户ID" )
        private String tenantId;


        @ApiModelProperty(value = "修改时间" )
        private LocalDate updateTime;


        @ApiModelProperty(value = "修改人" )
        private Long updateUser;


    }
